﻿{% extends "base_cn.html" %}
{% block title %} -- 微博 {% endblock %}
{% block content %}

  <table borderColor=#cccccc cellSpacing=0 cellPadding=3 width="100%" bgColor=#ffffff border=2>
  {% if ShowUserName %}
	<td valign="top">
	    <p>&nbsp;{{ ShowUserName }}的微博<br></p>
	    {% include "blog_show_name_cn.html" %}
	</td>

	<td valign="top">
	    {% include "blog_show_cur_cn.html" %}
	</td>
  {% else %}

    {% if UserName %}
    <tr>
	{% ifequal Tag 'my'%}
	    <td valign="top">
		<p>&nbsp;我的微博<br></p>
		{% include "blog_show_name_cn.html" %}
	    </td>

	    <td valign="top">
		{% include "blog_show_cur_cn.html" %}
	    </td>
	{% else %}
      	    <td>&nbsp;我的微博</td>
      	    <td>
		{% for BlogItem in MyBlogs %}
		    <b><a href = "/blog?tag=my&item={{ BlogItem.key }}"><b>{{ BlogItem.Content|escape|truncatehanzi:"10" }}</b></a></b>
		{% endfor %}
      	    </td>
	{% endifequal %}
    </tr>

    <tr>
      <td>
	发表新微博：
      </td>

      <td>
	<form action="/blog_add" method="post" name="form-blog">
		<!--div>标题：<input type="text" name="title" size="70"></input></div-->
		<div><font color=red>注意：内容最多200汉字</font><br><textarea name="content" rows="5" cols="60"></textarea></div>
		<div><input type="radio" name="publictype" value="0" checked>向所有人公开</div>
		<div><input type="radio" name="publictype" value="1">仅向朋友公开</div>
		<div><input type="radio" name="publictype" value="2">不公开</div>

		<input type="submit" value="提交"/>
	</form>
      </td>
    </tr>
 
    {% endif %}


    <tr>
	{% ifequal Tag 'syshot' %}
	    <td valign="top">
		<p>&nbsp;最热话题<br></p>
		{% include "blog_show_name_cn.html" %}
	    </td>

	    <td valign="top">
		{% include "blog_show_cur_cn.html" %}
	    </td>
	{% else %}
      	    <td>&nbsp;最热话题</td>
      	    <td>
		{% for BlogItem in HotBlogs %}
		    <b><a href = "/blog?tag=syshot&item={{ BlogItem.key }}"><b>{{ BlogItem.Content|escape|truncatehanzi:"10" }}</b></a></b>
		{% endfor %}
      	    </td>
	{% endifequal %}
    </tr>

    <tr>
	{% ifequal Tag 'sysnew' %}
	    <td valign="top">
		<p>&nbsp;最新话题<br></p>
		{% include "blog_show_name_cn.html" %}
	    </td>

	    <td valign="top">
		{% include "blog_show_cur_cn.html" %}
	    </td>
	{% else %}
      	    <td>&nbsp;最新话题</td>
      	    <td>
		{% for BlogItem in NewBlogs %}
		    <b><a href = "/blog?tag=sysnew&item={{ BlogItem.key }}"><b>{{ BlogItem.Content|escape|truncatehanzi:"10" }}</b></a></b>
		{% endfor %}
      	    </td>
	{% endifequal %}
    </tr>

  {% endif %}
  </table>

{% endblock %}